package springmvc.service;

import springmvc.bean.Homework;
import springmvc.bean.Student;
import springmvc.bean.Student_homework;

import java.util.List;

public interface DbService {

    List<Student_homework> select_all();

    String getPassword(String account);

    List<Homework> get_student_homework(String account);

    void insert_student_homework(String account, String homework_id, String content, String title);

    List<Homework> get_all_homework();

    List<Student> get_all_student();

    void add_homework(String title, String homework_id);

    void add_student(String id, String name, String age, String tel);
//
//    public void setAutoCommit(boolean flag);
//
//    public void commit();
//
//    public void rollback();
}
